package authority.dao;

import authority.entity.RolePermission;
import authority.util.DbBuilder;

public class RolePermissonDao {

	public Integer addRp(RolePermission rp) {
		String sql = "insert into role_permission values(?,?,?,?,?,?,?)";
		return DbBuilder.save(sql, rp.getId(), rp.getRid(), rp.getPid(),
				rp.getCreateTime(), rp.getUpdateTime(), rp.getOper(),
				rp.getStatus());
	}
}
